/* YouTube SelectBox Video select */


// ★ セレクトボックスによる曲の選択
function loadPlayer(videoID) {
var params = { allowScriptAccess: "always" };
var atts = { id: "myytplayer" };
swfobject.embedSWF("http://www.youtube.com/v/" + videoID +
"&enablejsapi=1&version=3&playerapiid=ytplayer",
"ytapiplayer", "230", "180", "8", null, null, params, atts);// 横230px 高さ180px
}
function updateHTML(elmId, value) {
document.getElementById(elmId).innerHTML = value;
}
function loadVideo() {
var selectBox = document.getElementById("videoSelection");
var videoID = selectBox.options[selectBox.selectedIndex].value
if(videoID != "none"){
if(ytplayer) {
ytplayer.setVolume(10);// ★ 音量をセットします
ytplayer.loadVideoById(videoID);
}}}
function onYouTubePlayerReady(playerId) {
ytplayer = document.getElementById("myytplayer");
}
